package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("schedule")
public class Schedule {
    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sId;
    private Integer dId;
    private Integer depId;
    private LocalDate date;
    private String time;
    private Integer remain;
    private Integer already;

    public Schedule(Integer dId, Integer depId, LocalDate date, String time, Integer remain, Integer already) {
        this.dId = dId;
        this.depId = depId;
        this.date = date;
        this.time = time;
        this.remain = remain;
        this.already = already;
    }
}
